<?php
/**
{
    "schoolImageId": "INT //",
    "schoolId": "INT //机构id@foreign::tbl_school; @search; ",
    "imageFileId": "INT //图片ID@foreign::tbl_image_file; @noList; @search; ",
    "img": "VARCHAR //图片地址@image; ",
    "sort": "INT //排序",
    "status": "TINYINT //状态@status; 0::提交待审核; 3::审核通过::@admin; 4::审核不通过::@admin; 88::删除::@admin; @noLoad; "
}
 */

class SchoolImage extends Base
{
    
	private $schoolImageId= '';//
	private $schoolId= '';//机构id@foreign::tbl_school;@search;
	private $imageFileId= "0";//图片ID@foreign::tbl_image_file;@noList;@search;
	private $img= NULL;//图片地址@image;
	private $sort= "0";//排序
	private $status= "0";//状态@status;0::提交待审核;3::审核通过::@admin;4::审核不通过::@admin;88::删除::@admin;@noLoad;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_school_image';
    }
    
    public  function key(){
        return 'schoolImageId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return array (  0 => 'status',);
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'SchoolImage';
    }
    
    public  function field()
    {
        return array (  'schoolImageId' =>   array (    0 => 'INT',    1 => 11,    2 => '',  ),  'schoolId' =>   array (    0 => 'INT',    1 => 11,    2 => '机构id@foreign::tbl_school;@search;',  ),  'imageFileId' =>   array (    0 => 'INT',    1 => 11,    2 => '图片ID@foreign::tbl_image_file;@noList;@search;',  ),  'img' =>   array (    0 => 'VARCHAR',    1 => 300,    2 => '图片地址@image;',  ),  'sort' =>   array (    0 => 'INT',    1 => 11,    2 => '排序',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;0::提交待审核;3::审核通过::@admin;4::审核不通过::@admin;88::删除::@admin;@noLoad;',  ),);
    }


}